<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="food in foodList">{{food.name}}:￥{{food.discount?food.price*food.discount:food.price}}</li>
        </ul>
    </div>
    <!-- 引入的地址和外联的vue必须放在里面，顺序也很重要 -->
    <script src="https://cdn.bootcss.com/vue/2.5.17/vue.js"></script>
    <script src="../2018-11-30/main.js"></script>
</body>
</html>